<template>
  <div>
    {{ a }} --- {{ b }}
    <el-button @click="a++" type="primary" plain>Add</el-button>
    <el-button @click="test" type="primary" plain>表单自定义获取值</el-button>
  </div>
</template>
<script setup>
import { ref } from "vue";
const a = ref(1);
const b = ref("222");
const props = defineProps(["placeholder"]);
console.log("props",props);
const emit = defineEmits(["test"]);
const modelValue = defineModel();
const test = () => {
  emit("update:modelValue", a);
};
</script>
